/*
 * commons is a based project implemented
 * Copyright (C) 2024 Jasmine
 */
package com.easy.core.exception;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 全局返回
 *
 * @author Jasmine
 * @since 1.0.0
 */
public class GlobalResultInfo implements ResultInfoInterface {
    @Schema(name = "返回码")
    private int code;
    @Schema(name = "返回消息")
    private String message;

    public GlobalResultInfo() {}

    public GlobalResultInfo(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
